/*************************************************************************
	> File Name: oj-118_chinesezodiac.c
	> Author: Wang Bo
	> Mail: 1276106221@qq.com
	> Created Time: 2020年10月18日 星期日 22时38分42秒
 ************************************************************************/

#include <stdio.h>
#include <stdlib.h>

int main() {
    int y;
    char *zod[12] = { "rat", "ox", "tiger", "rabbit", "dragon", "snake", 
                     "horse", "sheep", "monkey", "rooster", "dog", "pig"};
    scanf("%d", &y);
    if (y == 1900) {
        printf("rat");
    } else {
        int d = y - 1900;
        printf("%s", d > 0 ? zod[d % 12] : zod [11 - (abs(d) % 12 - 1)]);
    }
    return 0;
}
